// ButtonRight.cpp : implementation file
//

#include "stdafx.h"
#include "NXTPocketPC.h"
#include "ButtonRight.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// ButtonRight

ButtonRight::ButtonRight()
{
	
}

ButtonRight::~ButtonRight()
{
}


BEGIN_MESSAGE_MAP(ButtonRight, CButton)
	//{{AFX_MSG_MAP(ButtonRight)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_LBUTTONDBLCLK()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ButtonRight message handlers

void ButtonRight::OnLButtonDown(UINT nFlags, CPoint point) 
{
	dialog->turn_right();
}

void ButtonRight::OnLButtonUp(UINT nFlags, CPoint point) 
{
    dialog->stop();
}

void ButtonRight::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
	//do nothing
}
